package com.gt.xmall.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.gt.xmall.model.SysRole;
import com.gt.xmall.repository.SysRoleDao;
@Component
@Transactional(readOnly = true)
public class SysRoleService {
	@Autowired
	SysRoleDao sysRoleDao;

	public List<SysRole> getAllSysRoles(){
		return sysRoleDao.findAll();
	}
}
